
/*

Dofile: table3_appendix.do 

Date: Dec. 10, 2016 
Aim: Regressions on the sensitivity of tax avoidance to product differenciation   

Input: base_for_reg.dta 
Output: table3_appendix.xls
Reported in the online appendix: "Table A.3 – More measures of PTM"

*/  

cd $datapath
use base_for_reg, clear 


drop cty_*
qui tab pays, g(cty_)

global name table3_appendix
global tax_var inter_linvemtr interdum_hines
global control inter_tarif inter_ldist inter_lgdpc  cty_* // country fixed effects in all regressions

global condition  
areg luv type $tax_var inter_lgdp $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_lgdp $control  using  "$resultpath/$threshold/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     replace

areg luv type $tax_var  inter_lgini $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_lgini $control  using  "$resultpath/$threshold/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 

areg luv type $tax_var  inter_lremot $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_lremot $control  using  "$resultpath/$threshold/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 

global condition  
areg luv type $tax_var inter_lgdp inter_lgini inter_lremot  $control   $condition, a(fpt) cluster(pays)  
outreg2  type $tax_var inter_lgdp inter_lgini inter_lremot $control  using  "$resultpath/$threshold/$name.xls" ,  label e(all) nocons bdec(2) symbol($^{***}$, $^{**}$, $^{*}$)     append 


